import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src')
    }
  },
  server: {
    port: 3000, // local port
    open: true, // Automatically open the browser after startup
  },
  build: {
    outDir: 'dist', // Output directory
    assetsDir: 'assets', // Static resource directory
  },
  base: '/scu-isys3001-course-manager/'
})
//